<?php
/**
 * 商品套餐视图
 * @author tangbl
 *
 */
class ProductPackageViewModel extends ViewModel {
	
	public $viewFields = array(
				
			
     'Product' => array(
 
     		'*',
     		'_as'  => 'tbl',
     		'_type'=> 'left',
      ),
			
     'ProductPackage' => array(

     		'packid','size','unit','amount',
     		'_as'     => 'user',
     		'_on'     => 'tbl.id=user.pid'
     	)

	);
	
}
?>